xen.git
19 years ago[LIBXC] Fix Solaris build: Use XC_PAGE_SIZE not PAGE_SIZE.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:36:03 +0000 (17:36 +0000)]
[LIBXC] Fix Solaris build: Use XC_PAGE_SIZE not PAGE_SIZE.
Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[LINUX] Properly trigger XenbusStateClosed in blkfront
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:34:48 +0000 (17:34 +0000)]
[LINUX] Properly trigger XenbusStateClosed in blkfront

In some situations, like when error happens in block attach for
a guest in dom0, backend send us XenbusStateClosing notification.
However, as frontend were never properly initialized, it fails
to change its own state to XenbusStateClosed, leaving the system
in a dead-end state.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
19 years ago[QEMU] usb-uhci: Data buffer is too small
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:33:11 +0000 (17:33 +0000)]
[QEMU] usb-uhci: Data buffer is too small

The data buffer is only 1280 bytes long but the user-supplied length
can be as large as 0x7ff.  This patch extends the buffer to 2048
bytes.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years ago[QEMU] Simpler workaround for guest writes to PCI config
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:32:16 +0000 (17:32 +0000)]
[QEMU] Simpler workaround for guest writes to PCI config
space that extend past byte 0xff.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Missing xenoprof.h header file for x86/64.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:27:00 +0000 (17:27 +0000)]
[LINUX] Missing xenoprof.h header file for x86/64.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[XEN] Remove use of 'inline' on functions accessed via pointers.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:24:18 +0000 (17:24 +0000)]
[XEN] Remove use of 'inline' on functions accessed via pointers.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux/x86-64: missing agp.h
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:21:52 +0000 (17:21 +0000)]
linux/x86-64: missing agp.h

This causes data corruption and/or crashes when AGP is actually used.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[MINIOS] Improved unbind_all_ports().
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:17:28 +0000 (17:17 +0000)]
[MINIOS] Improved unbind_all_ports().
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
19 years ago[XEN] Arch-specific softirq definitions.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:14:09 +0000 (17:14 +0000)]
[XEN] Arch-specific softirq definitions.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[XEN] Proper segmentation emulation added to HVM emulated PTE writes.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:07:26 +0000 (17:07 +0000)]
[XEN] Proper segmentation emulation added to HVM emulated PTE writes.
Sigmed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Ian Campbell [Thu, 30 Nov 2006 16:36:18 +0000 (16:36 +0000)]
merge

19 years ago[XEN] Do not spin at the end of machine_crash_kexec(). If there was no crash
Ian Campbell [Thu, 30 Nov 2006 16:32:24 +0000 (16:32 +0000)]
[XEN] Do not spin at the end of machine_crash_kexec(). If there was no crash
image then we should return to the caller who will either restart the machine
as normal or continue on as appropriate.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEND] Fix HVM configuration parsing typo for certain cfg values.
Alastair Tse [Thu, 30 Nov 2006 15:41:35 +0000 (15:41 +0000)]
[XEND] Fix HVM configuration parsing typo for certain cfg values.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Catch TypeErrors when unexpected SXP is encountered.
Alastair Tse [Thu, 30 Nov 2006 15:19:01 +0000 (15:19 +0000)]
[XEND] Catch TypeErrors when unexpected SXP is encountered.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix Xen API attribute access to be robust to missing keys.
Alastair Tse [Thu, 30 Nov 2006 14:53:14 +0000 (14:53 +0000)]
[XEND] Fix Xen API attribute access to be robust to missing keys.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Checks to make sure the image type is valid in configuration
Alastair Tse [Thu, 30 Nov 2006 14:51:46 +0000 (14:51 +0000)]
[XEND] Checks to make sure the image type is valid in configuration

The 'builder' (eg. image type) should either be 'hvm' or 'linux' as
image.py only supports these at the moment.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Update debugging scripts to support vbd_list
Alastair Tse [Thu, 30 Nov 2006 14:50:27 +0000 (14:50 +0000)]
[XENAPI] Update debugging scripts to support vbd_list

Add function to list all vbds attached to a VM.
Update VM config builder to specify the default as 'linux'

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Rename Xen API methods to match case of the API documentation
Alastair Tse [Thu, 30 Nov 2006 14:48:42 +0000 (14:48 +0000)]
[XEND] Rename Xen API methods to match case of the API documentation

Get rid of the case skewing in XendAPI.
Remove _to_xml methods because it has been removed from the latest API
docs.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix hidden vcpu state when calling xm-list
Alastair Tse [Thu, 30 Nov 2006 14:46:45 +0000 (14:46 +0000)]
[XEND] Fix hidden vcpu state when calling xm-list

Stores the vcpus number in xenstore so it is preserved on xend
restart.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Remove SXP from most parts of Xend.
Alastair Tse [Thu, 30 Nov 2006 14:44:58 +0000 (14:44 +0000)]
[XEND] Remove SXP from most parts of Xend.

Attempt to get rid of most SXP dependency in Xend except in
configuration parsing and certain places where it is
required.

XendConfig now stores configuration options similar to Xen API VM
and devices attributes but exports an SXP version to certain things
like xm and XendCheckpoint. All access to VM and device attributes
should now use Python dictionaries rather than the SXP parser.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoUpdate -xen0 defconfig for nhew kexec option
Ian Campbell [Thu, 30 Nov 2006 14:05:27 +0000 (14:05 +0000)]
Update -xen0 defconfig for nhew kexec option

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix SIB byte decode when extended by REX.X and REX.B.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 14:04:36 +0000 (14:04 +0000)]
[XEN] Fix SIB byte decode when extended by REX.X and REX.B.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Ian Campbell [Thu, 30 Nov 2006 13:05:27 +0000 (13:05 +0000)]
merge

19 years ago[XEN] kexec: use parse_size_and_unit() when parsing crashkernel
Ian Campbell [Thu, 30 Nov 2006 12:39:35 +0000 (12:39 +0000)]
[XEN] kexec: use parse_size_and_unit() when parsing crashkernel
command line parameter.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fixup whitespace and tweak for Xen coding style.
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[XEN] Fixup whitespace and tweak for Xen coding style.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] kexec: Backport fix for overlapping program headers in x86_64 linker script.
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[LINUX] kexec: Backport fix for overlapping program headers in x86_64 linker script.

This allows a native kernel built from the xen tree to be used as a
crash kernel on x86_64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Kexec / Kdump: x86_64 specific code
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[XEN] Kexec / Kdump: x86_64 specific code

This patch contains the x86_64 implementation of Kexec / Kdump for Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
19 years ago[XEN] Kexec / Kdump: x86_32 specific code
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[XEN] Kexec / Kdump: x86_32 specific code

This patch contains the x86_32 implementation of Kexec / Kdump for Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
19 years ago[XEN] Kexec / Kdump: Code shared between x86_32 and x86_64
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[XEN] Kexec / Kdump: Code shared between x86_32 and x86_64

This patch contains Kexec / Kdump code shared between x86_32 and x86_64.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
19 years ago[XEN] Kexec / Kdump: Generic code
Ian Campbell [Thu, 30 Nov 2006 12:38:50 +0000 (12:38 +0000)]
[XEN] Kexec / Kdump: Generic code

This patch implements the generic portion of the Kexec / Kdump port to Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
19 years ago[XEN] Simplify x86_emulate interface.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 10:57:28 +0000 (10:57 +0000)]
[XEN] Simplify x86_emulate interface.

 - No distinction between 'special' and 'normal' memory accesses.
 - No reliance on caller-supplied %cr2 value
 - Memory operations include segment identifier to allow callers
   to support non-zero-based segments

TODO:
 1. HVM emulations should take into account segment base, limit, and
    attributes.
 2. We ought to obey stack-size attribute on PUSH/POP instructions.
    Could extend the mode input field, or could add an extra call-out
    hook, or perhaps we don't care at all...

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded the console class to the diagram.
Ewan Mellor [Wed, 29 Nov 2006 23:40:40 +0000 (23:40 +0000)]
Added the console class to the diagram.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoState that getters and setters do not have asynchronous versions -- there's no
Ewan Mellor [Wed, 29 Nov 2006 23:34:33 +0000 (23:34 +0000)]
State that getters and setters do not have asynchronous versions -- there's no
point, because they ought to be immediate.

Tidy up the examples in the presentation and wire-protocol sections, and bring
them into sync with the main body text.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoNew modelling for consoles -- have them as separate classes attached to the
Ewan Mellor [Wed, 29 Nov 2006 23:31:07 +0000 (23:31 +0000)]
New modelling for consoles -- have them as separate classes attached to the
VM, much like the arrangements for devices.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agomerge
kfraser@localhost.localdomain [Wed, 29 Nov 2006 12:43:11 +0000 (12:43 +0000)]
merge

19 years ago[HVMLOADER] Clean up makefile, change TPM detection.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 12:41:30 +0000 (12:41 +0000)]
[HVMLOADER] Clean up makefile, change TPM detection.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Avoid triggering the softlockup BUG when offline for too long.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 12:16:59 +0000 (12:16 +0000)]
[LINUX] Avoid triggering the softlockup BUG when offline for too long.

After being offline for a long time, the softlockup  watchdog triggers
a BUG() on our faces. This is expected, as in fact, we spent more than
a fixed 10*HZ amount of time without touching the watchdog.

However, by inspecting the contents of stolen inside timer irq handler,
we can gain awareness of the fact, and do better than that.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
19 years agoFix xm new -F -- this fix was recently introduced for xm create.
Ewan Mellor [Wed, 29 Nov 2006 12:16:19 +0000 (12:16 +0000)]
Fix xm new -F -- this fix was recently introduced for xm create.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove the assert under the protection of the in_transaction flag.
Ewan Mellor [Wed, 29 Nov 2006 12:15:45 +0000 (12:15 +0000)]
Move the assert under the protection of the in_transaction flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoSilence log message when trying to unregister a watch that's already been
Ewan Mellor [Wed, 29 Nov 2006 12:14:45 +0000 (12:14 +0000)]
Silence log message when trying to unregister a watch that's already been
unregistered -- this is not a problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[LINUX] console: Fix comment.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 12:04:49 +0000 (12:04 +0000)]
[LINUX] console: Fix comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XENOPROFILE, LINUX] compilation fix on x86_64
kfraser@localhost.localdomain [Wed, 29 Nov 2006 11:40:10 +0000 (11:40 +0000)]
[XENOPROFILE, LINUX] compilation fix on x86_64
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[HVMLOADER] Fix CFLAGS.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 11:38:17 +0000 (11:38 +0000)]
[HVMLOADER] Fix CFLAGS.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] console: Add option to use /dev/xvc0, major=204, minor=191.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 11:37:59 +0000 (11:37 +0000)]
[LINUX] console: Add option to use /dev/xvc0, major=204, minor=191.

The major/minor has now been allocated to us by lanana.org.

This is based on previous patches from:
 Jeremy Katz <katzj@redhat.com>
 Amos Waterland <apw@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][VMX] NX bit implies PAE can be enabled. If IA32 VMX guest finds
kfraser@localhost.localdomain [Wed, 29 Nov 2006 11:07:51 +0000 (11:07 +0000)]
[HVM][VMX] NX bit implies PAE can be enabled. If IA32 VMX guest finds
NX bit is there, it may enable PAE even if PAE bit is returned 0 by
CPUID.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[DOCS] Update for new Xen boot parameters.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 10:58:35 +0000 (10:58 +0000)]
[DOCS] Update for new Xen boot parameters.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix for network routing setup. Enables proxy arp on dom0's externally visible interface.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 10:57:30 +0000 (10:57 +0000)]
Fix for network routing setup. Enables proxy arp on dom0's externally visible interface.
Signed-off-by: H. Andres Lagar-Cavilla <andreslc@cs.toronto.edu>
19 years agoDiagnose a failure to open the xend-debug.log, and make the /var/log/xen
Ewan Mellor [Wed, 29 Nov 2006 10:56:02 +0000 (10:56 +0000)]
Diagnose a failure to open the xend-debug.log, and make the /var/log/xen
directory on startup, which was the most common reason to fail.
Closes bug #823.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Emulator fixes.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 10:48:06 +0000 (10:48 +0000)]
[XEN] Emulator fixes.

 1. Fix RIP-relative EA calculation. Immediate operands are never 64-bit.
 2. Displacements are sign-extended so used signed types.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoA trivial fix. login_unconditionally needs to be called with
Ewan Mellor [Tue, 28 Nov 2006 18:41:42 +0000 (18:41 +0000)]
A trivial fix. login_unconditionally needs to be called with
self.login_unconditionally to avoid  "global name
'login_unconditionally' is not defined"

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoWait for device-bringup inside domain_start, outside the scope of the
Ewan Mellor [Tue, 28 Nov 2006 18:00:45 +0000 (18:00 +0000)]
Wait for device-bringup inside domain_start, outside the scope of the
domains_lock.  This makes the VM.start call blocking, but allows xm list to
work while it is blocked.  Move the handling of start_paused out of
XendDomainInfo.start as part of this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoPlumb the "start_paused" flag through for VM.start and VM.resume. Do not
Ewan Mellor [Tue, 28 Nov 2006 17:28:43 +0000 (17:28 +0000)]
Plumb the "start_paused" flag through for VM.start and VM.resume.  Do not
unpause the VM on start by default.  This should fix problems seen recently
whereby devices are not attached to the VM by the time they boot, as
xm create was expecting to be able to wait for the devices before unpausing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAllow DMA address width to be overridden with boot parameters:
kfraser@localhost.localdomain [Tue, 28 Nov 2006 17:15:22 +0000 (17:15 +0000)]
Allow DMA address width to be overridden with boot parameters:

In Xen: dma_bits=28 (for example)
In Linux: swiotlb_bits=28 (for example)

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd test_bindings back into the build -- it isn't integrated with the normal
Ewan Mellor [Tue, 28 Nov 2006 17:04:32 +0000 (17:04 +0000)]
Add test_bindings back into the build -- it isn't integrated with the normal
targets, because it introduces an additional dependency (libcurl), but
make test/test_bindings does the right thing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix casing of various functions in XendAPI class.
jfehlig@jfehlig2.provo.novell.com [Tue, 14 Nov 2006 22:36:41 +0000 (15:36 -0700)]
Fix casing of various functions in XendAPI class.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
19 years agoClean up the DMADOM physical upper limit handling to properly honour
kfraser@localhost.localdomain [Tue, 28 Nov 2006 16:41:45 +0000 (16:41 +0000)]
Clean up the DMADOM physical upper limit handling to properly honour
settings in config.h.

Set the upper limit for DMADOM and swiotlb allocations to be 30 bits
(1G) instead of 31 bits, to allow the b44 NIC driver to work.

Signed-off-by: Stephen Tweedie <sct@redhat.com>
19 years agoAdd libxen to overall xen build via a config option in Config.mk.
jfehlig@jfehlig2.provo.novell.com [Wed, 22 Nov 2006 21:25:07 +0000 (14:25 -0700)]
Add libxen to overall xen build via a config option in Config.mk.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
19 years agoDummy implementation of get_platform_keymap, so that the API layer doesn't
Ewan Mellor [Tue, 28 Nov 2006 16:23:05 +0000 (16:23 +0000)]
Dummy implementation of get_platform_keymap, so that the API layer doesn't
complain.  This is going to change soon, I expect.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAllow the C bindings to be more permissive when a structure is missing some
Ewan Mellor [Tue, 28 Nov 2006 16:22:22 +0000 (16:22 +0000)]
Allow the C bindings to be more permissive when a structure is missing some
entries.  Complaining is just slowing development down when the server and
clients get out of sync.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVMLOADER][ACPI] Move SSDT initialisation to acpi/ dir.
kfraser@localhost.localdomain [Tue, 28 Nov 2006 15:47:52 +0000 (15:47 +0000)]
[HVMLOADER][ACPI] Move SSDT initialisation to acpi/ dir.
This kills off a few hundred lines of unnecessary code.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Update to 2.6.16.33.
Ian Campbell [Tue, 28 Nov 2006 15:25:26 +0000 (15:25 +0000)]
[LINUX] Update to 2.6.16.33.

No changes required to sparse tree or patches directory.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Add emulator tracing diagnostic on error path.
kfraser@localhost.localdomain [Tue, 28 Nov 2006 14:27:13 +0000 (14:27 +0000)]
[XEN] Add emulator tracing diagnostic on error path.
Simplify shadow-mode entry protocol to emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoBump xend_config_format to 3, to indicate that the lifecycle patches are
Ewan Mellor [Tue, 28 Nov 2006 14:24:20 +0000 (14:24 +0000)]
Bump xend_config_format to 3, to indicate that the lifecycle patches are
available.

Better version mechanisms will be forthcoming!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVMLOADER] acpi: Implement an acpi_rsdp_get() function that searches
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:53:12 +0000 (13:53 +0000)]
[HVMLOADER] acpi: Implement an acpi_rsdp_get() function that searches
for the RSDP in memory (up to the BIOS) rather than calculating its
start address. Recent changes seem to have moved the RSDP to another
location in memory so that I received 'BAD RSPD signature' messages.
I have also fixed some other possible issues related to return codes
and alignment of ACPI entries.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[BLKTAP] Use lartge enough types to express parameters of large block devices.
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:50:32 +0000 (13:50 +0000)]
[BLKTAP] Use lartge enough types to express parameters of large block devices.

While the kernel side of blktap drivers is using 64-bit sector numbers
correctly when reporting disk sizing, the userspace parts where this
dat is actually generated is truncating at 32-bit. There are 3 variables
related to disk sizing which are used in the kernel/userspace code
'size', 'sector size' & 'info'. In kernel space these are treated as being
unsigned long long, unsigned long, and unsigned int, respectively. In
the blktap userspace code this were all varyingly long, unsigned long.
This mismatch caused 32-bit wraparound on large disks. The attached
patch updates the blktap userspace to use the same data types as
kernel space for all these params, thus both fixing the 32-bit bug &
giving the code consistency.

This patch has been tested both by comparing /proc/partitions in the
guest, with the image size seen in the host, and by using Stephen
Tweedie's 'verify-data' tool on a variety of multi-TB sized disks.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[HVM][SVM] Allows 64bit HVM AMD-V Linux guests to boot.
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:48:47 +0000 (13:48 +0000)]
[HVM][SVM] Allows 64bit HVM AMD-V Linux guests to boot.
Basically, this patch reverts part of c/s 12264.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
19 years ago[QEMU] pci: Unaligned config read/write overflow
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:46:10 +0000 (13:46 +0000)]
[QEMU] pci: Unaligned config read/write overflow

The default config read/write handlers allows a 4-byte read/write at
address 255.  This can clobber the field after the config area.  This
happens to be the PCIBus pointer in the PCIDevice structure.

This patch stops this from reducing the read/write to the (largest
multiple of 2) number of bytes within the config area.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years ago[XENOPROFILE] fix shared_xenoprof_page_with_guest() and cleanup.
kfraser@localhost.localdomain [Tue, 28 Nov 2006 13:43:25 +0000 (13:43 +0000)]
[XENOPROFILE] fix shared_xenoprof_page_with_guest() and cleanup.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoAdded xm list --state option, to select VMs with a particular state. Make
Ewan Mellor [Tue, 28 Nov 2006 13:34:15 +0000 (13:34 +0000)]
Added xm list --state option, to select VMs with a particular state.  Make
this handled by a new message (xend.domains_with_state) and make xend.domains
equivalent to xend.domains_with_state(running).  This restores the Xen 3.0.3
semantics of xend.domains.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDo not display -1 as the domid when a VM is not running -- simply leave the
Ewan Mellor [Tue, 28 Nov 2006 13:32:07 +0000 (13:32 +0000)]
Do not display -1 as the domid when a VM is not running -- simply leave the
column blank.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Clear just the _PAGE_RW bit when shooting writeable mappings
Tim Deegan [Tue, 28 Nov 2006 12:24:24 +0000 (12:24 +0000)]
[XEN] Clear just the _PAGE_RW bit when shooting writeable mappings
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agomerge
kfraser@localhost.localdomain [Tue, 28 Nov 2006 11:47:28 +0000 (11:47 +0000)]
merge

19 years ago[HVM] Add/fix access rights and limit checks to INS/OUTS emulation
kfraser@localhost.localdomain [Tue, 28 Nov 2006 11:46:39 +0000 (11:46 +0000)]
[HVM] Add/fix access rights and limit checks to INS/OUTS emulation

Since these instructions are documented to take their intercepts
before these checks are being done in hardware, they must be carried
out in software.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[HVM] Non-flat protected mode HVM support.
kfraser@localhost.localdomain [Tue, 28 Nov 2006 11:45:54 +0000 (11:45 +0000)]
[HVM] Non-flat protected mode HVM support.

This is now the full set of changes needed to eliminate the assumption
that segments in protected mode always have zero base addresses. At
once, this further simplifies the instruction length determination
code used for MMIO of HVM domains.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoFix missing import.
Ewan Mellor [Tue, 28 Nov 2006 11:43:43 +0000 (11:43 +0000)]
Fix missing import.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM] Fix MSR access code.
kfraser@localhost.localdomain [Tue, 28 Nov 2006 11:43:39 +0000 (11:43 +0000)]
[HVM] Fix MSR access code.

- rdmsr/wrmsr always use ECX (not RCX) as register index.
- SVM still had the function names explicitly in the HVM_DBG_LOG() output
- the guest should (at the very minimum) see GP fault for MSRs
  accesses to which even fault in Xen itself

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoDon't bail if the VM renaming at the end of saving doesn't succeed -- we
Ewan Mellor [Tue, 28 Nov 2006 11:35:10 +0000 (11:35 +0000)]
Don't bail if the VM renaming at the end of saving doesn't succeed -- we
expect a failure if this is a localhost migration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded configuration for authentication through Xen-API -- it can now be set
Ewan Mellor [Tue, 28 Nov 2006 11:31:46 +0000 (11:31 +0000)]
Added configuration for authentication through Xen-API -- it can now be set
to use PAM, or to be turned off entirely, on a listener by listener basis.

Listen on a different unix domain socket for the Xen-API server, so that it
can co-exist with the others.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix log message.
Ewan Mellor [Tue, 28 Nov 2006 10:24:52 +0000 (10:24 +0000)]
Fix log message.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement an "allowed hosts" mechanism for the XML-RPC server layer, using
Ewan Mellor [Tue, 28 Nov 2006 10:23:34 +0000 (10:23 +0000)]
Implement an "allowed hosts" mechanism for the XML-RPC server layer, using
code from the relocation protocol handling and some plumbing.  Add a new
configuration entry for the Xen-API server, including use of this mechanism.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Remove valid_mfn().
Tim Deegan [Tue, 28 Nov 2006 09:51:05 +0000 (09:51 +0000)]
[XEN] Remove valid_mfn().
Since cset 12568 removed VALID_MFN(), valid_mfn() is just confusing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Don't unpin old shadow top levels until the new ones are pinned.
Tim Deegan [Tue, 28 Nov 2006 09:39:32 +0000 (09:39 +0000)]
[XEN] Don't unpin old shadow top levels until the new ones are pinned.
This will stop a possible case where we unshadow an entire process
on a TLB-flush CR3 write.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoCope with non-integer domids (i.e. None) in the error message surrounding
Ewan Mellor [Mon, 27 Nov 2006 20:04:20 +0000 (20:04 +0000)]
Cope with non-integer domids (i.e. None) in the error message surrounding
save/restore.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM] Re-introduce the 'apic' configuration option, default to 1.
kfraser@localhost.localdomain [Mon, 27 Nov 2006 17:49:41 +0000 (17:49 +0000)]
[HVM] Re-introduce the 'apic' configuration option, default to 1.

Also simplify the HVM builder interface by doing more work in
the python wrapper, and fix mapping of shared_info page after the
change to map foreign pages by GMFN rather than MFN.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Remove VALID_MFN(); replace uses with mfn_valid().
kfraser@localhost.localdomain [Mon, 27 Nov 2006 17:48:24 +0000 (17:48 +0000)]
[XEN] Remove VALID_MFN(); replace uses with mfn_valid().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoWhen suspending and resuming, look up the managed path using the domain's UUID.
Ewan Mellor [Mon, 27 Nov 2006 14:52:41 +0000 (14:52 +0000)]
When suspending and resuming, look up the managed path using the domain's UUID.

Add a resumed domain to the self.domains list after XendCheckpoint.restore,
to ensure that it does not get recreated immediately afterwards.

Perform domain_resume under the domains_lock, given that the domain needs to
be added.

These fixes together should fix xm suspend and xm resume.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDon't send the old state string for halted domains -- it doesn't make any
Ewan Mellor [Mon, 27 Nov 2006 14:48:38 +0000 (14:48 +0000)]
Don't send the old state string for halted domains -- it doesn't make any
sense, and we don't want to see state flags linger.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReset the domain name after the save completes. This is necessary, now that
Ewan Mellor [Mon, 27 Nov 2006 14:47:23 +0000 (14:47 +0000)]
Reset the domain name after the save completes.  This is necessary, now that
we have persistent domains.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdd xm resume to the commands list.
Ewan Mellor [Mon, 27 Nov 2006 14:45:44 +0000 (14:45 +0000)]
Add xm resume to the commands list.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Cleanups to phys/mach address handling.
kfraser@localhost.localdomain [Mon, 27 Nov 2006 14:20:44 +0000 (14:20 +0000)]
[XEN] Cleanups to phys/mach address handling.

 1. Balloon driver does not need to set M2P entry.
    This is done by the populate_physmap hypercall.

 2. Xen now translates foreign mappings from GMFN->MFN.
    Tools are simplified because of this.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Import kasprintf patch from upstream.
Ian Campbell [Mon, 27 Nov 2006 13:50:02 +0000 (13:50 +0000)]
[LINUX] Import kasprintf patch from upstream.

kasprintf has been merged upstream with a slightly different protoype
to the one in Xen. Import this patch and fixup the Xen tree to fit.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Update to Linux 2.6.16.32
Ian Campbell [Mon, 27 Nov 2006 13:50:02 +0000 (13:50 +0000)]
[LINUX] Update to Linux 2.6.16.32

Updated patches/linux-2.6.16.32/net-gso-0-base.patch due to changes in
net/core/dev.c and net/core/skbuff.c and update the following in the sparse
tree:
include/linux/skbuff.h
mm/memory.c
mm/mmap.c

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Update to Linux 2.6.16.31
Ian Campbell [Mon, 27 Nov 2006 13:50:02 +0000 (13:50 +0000)]
[LINUX] Update to Linux 2.6.16.31

Updated linux-2.6-xen-sparse/arch/x86_64/kernel/acpi/Makefile

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Update to 2.6.16.30.
Ian Campbell [Mon, 27 Nov 2006 13:50:01 +0000 (13:50 +0000)]
[LINUX] Update to 2.6.16.30.

No changes required to sparse tree or patches directory.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[NET] back: Fix DPRINTK message.
kfraser@localhost.localdomain [Mon, 27 Nov 2006 13:22:21 +0000 (13:22 +0000)]
[NET] back: Fix DPRINTK message.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix typo.
Ewan Mellor [Mon, 27 Nov 2006 12:53:40 +0000 (12:53 +0000)]
Fix typo.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDo not bother waiting for the old HttpServer and UnixHttpServer threads when
Ewan Mellor [Mon, 27 Nov 2006 12:50:30 +0000 (12:50 +0000)]
Do not bother waiting for the old HttpServer and UnixHttpServer threads when
shutting down -- they don't have exit handling themselves and ought to just
be made daemon threads.

Added some logging to dialog shutdown problems.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM] Move IOAPIC ID back to 0x00. Shift LAPIC IDs to 0x01 upwards.
kfraser@localhost.localdomain [Mon, 27 Nov 2006 12:00:01 +0000 (12:00 +0000)]
[HVM] Move IOAPIC ID back to 0x00. Shift LAPIC IDs to 0x01 upwards.

Actually the conflict between LAPIC ID 0x00 and IOAPIC ID 0x00
really doesn't matter even in a native system but we can avoid
any risk of a warning by shifting the LAPIC ID space by one.

Also the changeset fixes construction of the MADT (LAPIC info
was overwriting the IOAPIC info) so we can now boot with ACPI
MADT again.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Fix 8259 ELCR masks.
kfraser@localhost.localdomain [Mon, 27 Nov 2006 11:39:54 +0000 (11:39 +0000)]
[HVM] Fix 8259 ELCR masks.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XENOPROFILE] removed unused gmaddr argument.
kfraser@localhost.localdomain [Mon, 27 Nov 2006 10:24:41 +0000 (10:24 +0000)]
[XENOPROFILE] removed unused gmaddr argument.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>